home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / 422mods.zip / REQUEST.422 < prev    next >
Text File  |  1993-02-17  |  3KB  |  81 lines

  1. request a phile with "//REQUEST" at main & dl menu!
  2. Stud #540 @12456
  3. 3Sunday, February 14, 1993  112:39 am
  4. ┌─────────────────────────────────────────────────────────────────────────────┐
  5. │ Name of mod : Who cares...                                                  │
  6. │ Version     :4.22, but works with 4.21                                      │
  7. │ What it doez: I've seen many mods that will let a user e-mail the sysop as  │
  8. │               to what ofline philes they want, but this uses ssm to tell    │
  9. │               the sysop that a user whats a phile. This is a combo of 2     │
  10. │               other modz, so i won't take credit for it...anyway...         │
  11. └─────────────────────────────────────────────────────────────────────────────┘
  12.  
  13. Step [1]. Back up da source. I doubt this will do anything if u do it wrong, 
  14.           but it's better to be safe than sorry...
  15.  
  16.  
  17. Step [2]. In BBS.C search for this in : void mainmenu(void)
  18.  
  19.     if (strcmp(s,"/?")==0) {
  20.       printmenu(5);
  21.     }
  22.   }
  23. /*************************************************/
  24. /*ADD*/  if (strcmp(s,"REQUEST")==0) {
  25. /*ADD*/   request_file();
  26. /*ADD*/  }
  27.  
  28.   if ((strcmp(s,"UPLOAD")==0) && (actsl>10))
  29.     upload_post();
  30.   if (strcmp(s,"QSCAN")==0) {
  31.     nl();
  32.     prt(5,get_string(24));
  33.  
  34.  
  35. Step [3]. Still in BBS.C, look in dlmainmenu(void) for this:
  36.  
  37.     sysopchar(s);
  38.   if (strcmp(s,"/O")==0)
  39.     hangup=1;
  40. /*ADD*/  if (strcmp(s,"//REQUEST")==0) {
  41. /*ADD*/    request_file();
  42. /*ADD*/  }
  43.   if (strcmp(s,"/S")==0) {
  44.     pl(get_string(26));
  45.     set_x_only(1,"FILES.TXT", 1);
  46.  
  47. Step [4]. Go to the bottom of BBS.C and add this void...
  48.  
  49. /* ADD */ void request_file(void)
  50. {
  51. char *s, s1[81],s2[81],ch;
  52. prt(8,"Would you like to request a phile?");
  53.             if (yn()) {
  54.           prt(9,"Pleaze type the name of the phile(s)...");
  55.               nl();
  56.               mpl(75);
  57.               sprintf(s2,"Phile Request From %s %d: ",thisuser.name,usernum);
  58.               ssm(1,0,s2);
  59.               strcpy(s2,"    ");
  60.               input(s1,75);
  61.               strcat(s2,s1);
  62.               ssm(1,0,s2);
  63.           }
  64.  
  65. }
  66.  
  67. Step [5]. Now Save BBS.C and Load FCNS.H and look for  /* File: bbs.c */ 
  68.           and then add this function.
  69.  
  70. /* ADD */ void request_file(void);
  71.  
  72. Save FCNS.H, Now recompile.
  73.  
  74.  
  75. <Insert stupid disclaimer here> 
  76.  
  77. l8rnezz...
  78. 9
  79. 9        1─────4 The Insane Asylum 1────4 Link @12456 / Net @2456 1─────0
  80. 8        1─────4 Become a patient! 1────4 (214) 570-5950 (USR DS) 1─────0
  81.